<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title></title>
	
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css(array('front-end/mobile-style', 'front-end/mobile-page'));
		echo $this->Html->script(array('front-end/tabs_old'));
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
</head>
<body>
	<div id="container">
		<header>
			<a id="logo" href="#">
				<?php echo $this->Html->image('style-mobile/logo.png'); ?>
			</a>
			
			<div id="head-right">
				<?php echo $this->Form->create('Game', array('action' => 'search')); 
					echo $this->Form->input('keyword', array('label' => false, 'placeholder' => 'Tìm kiếm game...'));
					echo $this->Form->submit('Tìm kiếm', array('class' => 'search'));
					echo $this->Form->end();
				?>
				<ul>
					<?php if(empty($logged_in)): ?>
					<li><?php echo $this->Html->link('Đăng ký', array('controller' => 'users', 'action' => 'register')); ?></li>
					<li><?php echo $this->Html->link('Đăng nhập', array('controller' => 'users', 'action' => 'login')); ?></li>
					<?php else : ?>
					<li>Chào bạn: <?php echo $logged_in['username']; ?></li>
					<li><?php echo $this->Html->link('Thoát', array('controller' => 'users', 'action' => 'logout')); ?></li>
					<?php endif; ?>
				</ul>
			</div>
		</header>
		
		<div id="menu">
			<ul>
				<li><a href="#">Trang chủ</a></li>
				<li><a href="#">Android</a></li>
				<li><a href="#">iOs</a></li>
				<li><a href="#">Windows Phone</a></li>
			</ul>
		</div>
		
		<div id="slide">
			<ul id="slide-images">
				<li><?php echo $this->Html->image('style-mobile/slide.jpg'); ?></li>
			</ul>
		</div>
		<div id="content">
			<?php echo $this->fetch('content'); ?>
		</div>
		<?php 
		echo $this->element('menu-mobile'); 
		echo $this->element('category-mobile'); ?>
		
		
		<footer>
			<p>Copyright 2013 by nodogame.com</p>
		</footer>
	</div>
</body>
</html>